package com.zhiche.lisa.bms.dao.model.arfund;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 其他扣款
 * </p>
 *
 * @author hongbo
 * @since 2018-09-20
 */
@TableName("lisa_ar_fund")
public class ArFund extends Model<ArFund> {

    private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
    /**
     * 扣款项
     */
	private String withhold;
    /**
     * 承运商id
     */
	@TableField("lsp_id")
	private Long lspId;
    /**
     * 承运商名称
     */
	@TableField("lsp_name")
	private String lspName;
    /**
     * 车队id
     */
	@TableField("fleet_id")
	private Long fleetId;
    /**
     * 车队名称
     */
	@TableField("fleet_name")
	private String fleetName;
    /**
     * 司机名称
     */
	@TableField("driver_name")
	private String driverName;
    /**
     * 司机手机
     */
	@TableField("driver_mobile")
	private String driverMobile;
    /**
     * 司机id
     */
	@TableField("driver_id")
	private Long driverId;
    /**
     * 金额
     */
	private BigDecimal sum;
    /**
     * 扣款方式:0油卡1现金
     */
	@TableField("withhold_way")
	private String withholdWay;
    /**
     * 已执行金额
     */
	@TableField("execute_sum")
	private BigDecimal executeSum;

	/**
	 * OTM运单号明细
	 */
	@TableField("waybill_dtl_id")
	private String waybillDtlId;

    /**
     * 剩余金额
     */
	private BigDecimal balance;
    /**
     * 状态：0、新增1、执行中 2、完成
     */
	private Integer status;
    /**
     * 创建日期
     */
	@TableField("gmt_create")
	private Date gmtCreate;

	/**
	 * 租户
	 */
	@TableField("tenant_id")
	private Long tenantId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getWithhold() {
		return withhold;
	}

	public void setWithhold(String withhold) {
		this.withhold = withhold;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	public String getLspName() {
		return lspName;
	}

	public void setLspName(String lspName) {
		this.lspName = lspName;
	}

	public Long getFleetId() {
		return fleetId;
	}

	public void setFleetId(Long fleetId) {
		this.fleetId = fleetId;
	}

	public String getFleetName() {
		return fleetName;
	}

	public void setFleetName(String fleetName) {
		this.fleetName = fleetName;
	}

	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public String getDriverMobile() {
		return driverMobile;
	}

	public void setDriverMobile(String driverMobile) {
		this.driverMobile = driverMobile;
	}

	public Long getDriverId() {
		return driverId;
	}

	public void setDriverId(Long driverId) {
		this.driverId = driverId;
	}

	public BigDecimal getSum() {
		return sum;
	}

	public void setSum(BigDecimal sum) {
		this.sum = sum;
	}

	public String getWithholdWay() {
		return withholdWay;
	}

	public void setWithholdWay(String withholdWay) {
		this.withholdWay = withholdWay;
	}

	public BigDecimal getExecuteSum() {
		return executeSum;
	}

	public void setExecuteSum(BigDecimal executeSum) {
		this.executeSum = executeSum;
	}

	public BigDecimal getBalance() {
		return balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public String getWaybillDtlId () {
		return waybillDtlId;
	}

	public void setWaybillDtlId (String waybillDtlId) {
		this.waybillDtlId = waybillDtlId;
	}
	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("ArFund{");
		sb.append("id=").append(id);
		sb.append(", withhold='").append(withhold).append('\'');
		sb.append(", lspId=").append(lspId);
		sb.append(", lspName='").append(lspName).append('\'');
		sb.append(", fleetId=").append(fleetId);
		sb.append(", fleetName='").append(fleetName).append('\'');
		sb.append(", driverName='").append(driverName).append('\'');
		sb.append(", driverMobile='").append(driverMobile).append('\'');
		sb.append(", driverId=").append(driverId);
		sb.append(", sum=").append(sum);
		sb.append(", withholdWay='").append(withholdWay).append('\'');
		sb.append(", executeSum=").append(executeSum);
		sb.append(", balance=").append(balance);
		sb.append(", status=").append(status);
		sb.append(", gmtCreate=").append(gmtCreate);
		sb.append(", tenantId=").append(tenantId);
		sb.append('}');
		return sb.toString();
	}
}
